package marks

import "time"

type Object struct {
	Describe string
	PathName string
	Cid string
	Timestamp string
	PreHash string
	Owner string
}

func NewObject(pre ,name ,cid,  describe ,Owner string) *Object {
	return &Object{
		Describe:describe,
		PathName:name,
		Cid:cid,
		Timestamp:time.Now().Format("2006-01-02 15:04:05"),
		PreHash:pre,
		Owner:Owner,
	}
}


func (this *Object)GetFileTpye() string {
	if this != nil{
		return this.Describe
	}
	return ""
}


func (this *Object)GetFileName() string {
	if this != nil{
		return string(this.PathName)
	}
	return ""
}


func (this *Object)GetCid() string {
	if this != nil{
		return string(this.Cid)
	}
	return ""
}